package com.zte.claa.inficombo.csa.app.service.gprscat1.bean;

public class GPRSDevRegRsp {
	public static final short GPRSCAT1_RESULT_SUCC  = 0x00;	
	public static final short GPRSCAT1_RESULT_FAIL  = 0x01;
	private byte   msgtype;
	private byte   result;
	private byte   reason;
	private String deveui;
	private String imei;
	
	public GPRSDevRegRsp(){
		msgtype = GPRSMsgHead.GPRSCAT1_DW_REGRSP;
		result  = GPRSDevRegRsp.GPRSCAT1_RESULT_SUCC;
		reason  = GPRSMessage.GPRSCAT1_ERR_NO_REASON;
	}
	
	public String getDeveui() {
		return deveui;
	}


	public void setDeveui(String deveui) {
		this.deveui = deveui;
	}


	public byte getMsgtype() {
		return msgtype;
	}

	public void setMsgtype(byte msgtype) {
		this.msgtype = msgtype;
	}

	public byte getResult() {
		return result;
	}

	public void setResult(byte result) {
		this.result = result;
	}

	public byte getReason() {
		return reason;
	}

	public void setReason(byte reason) {
		this.reason = reason;
	}

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("msgtype: ").append(this.msgtype).append("\n");
		sb.append("deveui: ").append(this.deveui).append("\n");
		sb.append("imei: ").append(this.imei).append("\n");
		sb.append("result: ").append(this.result).append("\n");
		sb.append("reason: ").append(this.reason);
		return sb.toString();
	}
}
